package com.zy.pay.api.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.zy.pay.api.enums.ZyPayApiEnum;
import com.zy.pay.api.response.ZyPayOrderQueryResponse;

/**
 * 查询订单请求参数 <br>
 *
 * @author panweiqiang <br>
 * @date 2020/7/7 9:27 <br>
 */
public class ZyPayOrderQueryRequest extends ZyPayRequest<ZyPayOrderQueryResponse> {

    @Override
    public Class<ZyPayOrderQueryResponse> getResponseClass() {
        return ZyPayOrderQueryResponse.class;
    }

    @Override
    public ZyPayApiEnum getApiEnum() {
        return ZyPayApiEnum.ORDER_QUERY;
    }

    /**
     * 商户订单号（与tran_no/pay_info三选一）
     */
    @JSONField(name = "cp_tran_no")
    private String cpTranNo;

    /**
     * 统一支付订单号（与cp_tran_no/pay_info三选一）
     */
    @JSONField(name = "tran_no")
    private String tranNo;

    /**
     * 二维码信息（与cp_tran_no/tran_no三选一）
     */
    @JSONField(name = "pay_info")
    private String payInfo;

    /**
     * 商户订单提交时间,精确到秒，格式：yyyyMMddHHmmss
     */
    @JSONField(name = "time")
    private String time;

    public String getCpTranNo() {
        return cpTranNo;
    }

    public void setCpTranNo(String cpTranNo) {
        this.cpTranNo = cpTranNo;
    }

    public String getTranNo() {
        return tranNo;
    }

    public void setTranNo(String tranNo) {
        this.tranNo = tranNo;
    }

    public String getPayInfo() {
        return payInfo;
    }

    public void setPayInfo(String payInfo) {
        this.payInfo = payInfo;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
